#include<stdio.h>
int main()
{
float a,b,h;float area;
scanf("%f %f %f",&a,&b,&h);
area=(a+b)*h/2.0;
printf("%.2f",area);
}
